import request from '@/utils/request'

// 查询会计项目原因列表
export function listReason(query) {
  return request({
    url: '/system/reason/list',
    method: 'get',
    params: query
  })
}
// 查询会计项目原因列表
export function listRC(query) {
  return request({
    url: '/system/reason/listRC',
    method: 'get',
    params: query
  })
}

// 查询会计项目原因详细
export function getReason(rid) {
  return request({
    url: '/system/reason/' + rid,
    method: 'get'
  })
}

// 新增会计项目原因
export function addReason(data) {
  return request({
    url: '/system/reason',
    method: 'post',
    data: data
  })
}

// 修改会计项目原因
export function updateReason(data) {
  return request({
    url: '/system/reason',
    method: 'put',
    data: data
  })
}

// 删除会计项目原因
export function delReason(rid) {
  return request({
    url: '/system/reason/' + rid,
    method: 'delete'
  })
}
